home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat2 / psigblock.nr < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. Psigblock(2)               Oct. 1, 1991              Psigblock(2)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        Psigblock, Psigsetmask - block or unblock delivery of sig-
  9.        nals
  10.  
  11. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  12.        LONG Psigblock( LONG mask );
  13.        LONG Psigsetmask( LONG mask );
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        _✓P_✓s_✓i_✓g_✓b_✓l_✓o_✓c_✓k adds the set of signals defined by the  variable
  17.        _✓m_✓a_✓s_✓k  to  the set of signals which are blocked from deliv-
  18.        ery.  Each bit of _✓m_✓a_✓s_✓k represents a signal; if  bit  _✓n  of
  19.        _✓m_✓a_✓s_✓k  is  set, then signal number _✓n is blocked.  _✓P_✓s_✓i_✓g_✓b_✓l_✓o_✓c_✓k
  20.        returns the set of blocked signals as it was prior to  the
  21.        new  signals  being  added  to it; the old set can thus be
  22.        restored with the _✓P_✓s_✓i_✓g_✓s_✓e_✓t_✓m_✓a_✓s_✓k call.
  23.  
  24.        _✓P_✓s_✓i_✓g_✓s_✓e_✓t_✓m_✓a_✓s_✓k replaces the set of blocked signals  with  the
  25.        set  in  _✓m_✓a_✓s_✓k;  the  bits of _✓m_✓a_✓s_✓k have the same meaning as
  26.        they do for _✓P_✓s_✓i_✓g_✓b_✓l_✓o_✓c_✓k, except that bits that are set to  0
  27.        will  cause  the  corresponding  signals  to  no longer be
  28.        blocked.  _✓P_✓s_✓i_✓g_✓s_✓e_✓t_✓m_✓a_✓s_✓k returns the old set of blocked  sig-
  29.        nals.
  30.  
  31.        Note   that  certain  signals  (e.g.  SIGKILL)  cannot  be
  32.        blocked, and the kernel will (silently) clear  the  corre-
  33.        sponding  bits  in _✓m_✓a_✓s_✓k before changing the blocked signal
  34.        set.
  35.  
  36.        Blocked signals remain blocked  across  _✓P_✓f_✓o_✓r_✓k  and  _✓P_✓v_✓f_✓o_✓r_✓k
  37.        calls.  After  a _✓P_✓e_✓x_✓e_✓c call, the child process will always
  38.        start with an empty set of blocked signals, regardless  of
  39.        which signals were blocked by the parent.
  40.  
  41. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  42.        _✓P_✓k_✓i_✓l_✓l(2), _✓P_✓s_✓i_✓g_✓n_✓a_✓l(2), _✓P_✓s_✓i_✓g_✓p_✓e_✓n_✓d_✓i_✓n_✓g(2)
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Version 0.9          MiNT Programmer's Manual                   1
  65.  
  66.  
  67.